<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once  "function_net_addr.php";
$dev  =$_POST['devname'];
$type =$_POST['type'];
$num  =$_POST['num'];
$in_array['Enabled']=$_POST['enabled'];
$in_array['Desc']=base64_encode($_POST['desc']);
$in_array['Ip'] = $_POST['ip'];
$in_array['Mask']=$_POST['mask'];

$addr = new CAddress($dev, $type);
$addr->EditItemByNumber($num, $in_array);

include_once "function_misc_log.php";
$in_array['Dev'] = $dev;
$in_array['Type'] = $type;
$in_array['Number'] = $num;
$in_array['Desc'] = "'". $in_array['Desc']. "'";
logger("Modify", $in_array, "Address_List");

include_once  "function_web_misc.php";
PrintSuccessPageAndJump('net_dev_addr_list.php?dev='. $dev.'&type='. $type);
?>


